package cn.village.controller;

import cn.village.entity.VaRole;
import cn.village.service.VaRoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (VaRole)表控制层
 *
 * @author makejava
 * @since 2021-02-02 10:50:41
 */
@RestController
@RequestMapping("vaRole")
public class VaRoleController {
    /**
     * 服务对象
     */
    @Resource
    private VaRoleService vaRoleService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public VaRole selectOne(Integer id) {
        return this.vaRoleService.queryById(id);
    }

}